#include "Oscillator.h"
#include <math.h>

COscillator::COscillator(float amplitude, float frequency, float offset):m_amplitude(amplitude), m_frequency(frequency), m_offset(offset),
			m_time(this, 0){}

//COscillator::~COscillator(void){}

void COscillator::doUpdate()
{
	float value=m_amplitude*sin((m_time*m_frequency)+m_offset);
	setValue(value);
}